home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funpushi.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  577 b   |  31 lines

  1. /*
  2. \funcref{fun\_push\_imm}{void fun\_push\_imm ()}
  3.     {}
  4.     {}
  5.     {push(), getint16()}
  6.     {}
  7.     {funpushi.c}
  8.     {
  9.  
  10.         This function is called when an immediate value is to be pushed. The
  11.         value (type {\em INT16}) is expected to follow the opcode.
  12.  
  13.         A variable of type {\em e\_int}, with its {\em vu.intval} field set
  14.         to the value retrieved from the binary makefile, is pushed.
  15.  
  16.     }
  17. */
  18.  
  19. #include "icm-exec.h"
  20.  
  21. void fun_push_imm ()
  22. {
  23.     VAR_
  24.         tmp;
  25.  
  26.     tmp.type = e_int;
  27.     tmp.vu.intval = (int) getint16 (infile);
  28.  
  29.     push (tmp);
  30. }
  31.